Plugin support for revision weblink Support for an extension point that allows for weblinks to several external tools. First effort, weblinks for patch sets. At the present time GitWebLink is integrated. But the aim is to extend support to engulf entire GitWebLink and provide backwards support by adding a plugin that has the same functionality as GitWebLink has today. Change-Id: I19f4d00325d2991df9514ee8833a8873649c27bc 
diff --git a/Documentation/dev-plugins.txt b/Documentation/dev-plugins.txt index 575f5fa..dc98e11 100644 --- a/Documentation/dev-plugins.txt +++ b/Documentation/dev-plugins.txt 
@@ -1706,6 +1706,39 @@  The download schemes and download commands which are used most often  are provided by the Gerrit core plugin `download-commands`.   +[[links-to-external-tools]] +== Links To External Tools + +Gerrit has extension points that enables development of a +light-weight plugin that links commits to external +tools (GitBlit, CGit, company specific resources etc). + +PatchSetWebLinks will appear to the right of the commit-SHA1 in the UI. + +[source, java] +---- +import com.google.gerrit.extensions.annotations.Listen; +import com.google.gerrit.extensions.webui.PatchSetWebLink;; + +@Listen +public class MyWeblinkPlugin implements PatchSetWebLink { + + private String name = "MyLink"; + private String placeHolderUrlProjectCommit = "http://my.tool.com/project=%s/commit=%s"; + + @Override + public String getLinkName() { + return name ; + } + + @Override + public String getPatchSetUrl(String project, String commit) { + return String.format(placeHolderUrlProjectCommit, project, commit); + } + +} +---- +  [[documentation]]  == Documentation